function Blog(overlay,n,title,description,type,userId,date){
	this.id=n;
	this.title=title;
	this.description=description;
	this.overlay=overlay;
	this.type=type;
	this.userId=userId;
	this.media=[];
	this.comments=[];
	this.tags=[];
	this.likes=0;
	this.dislikes=0;
	this.state='private';
	this.date=date;
}

Blog.prototype.addComment = function(userId,body,time){
	var n=this.comments.length;
	this.comments[n]=new Comment(body,userId,this.id,time);
};

Blog.prototype.getId = function(){
	return this.id;
};

Blog.prototype.setId = function(id){
	this.id=id;
};

Blog.prototype.getName = function(){
	return this.name;
};

Blog.prototype.setName = function(name){
	this.name=name;
};

Blog.prototype.getDescription = function(){
	return this.description;
};

Blog.prototype.setDescription = function(description){
	this.description=description;
};

Blog.prototype.getMedia = function(){
	return this.media;
};

Blog.prototype.setMedia = function(media){
	this.media=media;
};

Blog.prototype.getComments = function(){
	return this.comments;
};

Blog.prototype.setComments = function(comments){
	this.comments=comments;
};

Blog.prototype.getTags = function(){
	return this.tags;
};

Blog.prototype.setTags = function(tags){
	this.tags=tags;
};

Blog.prototype.getAgree = function(){
	return this.agree;
};

Blog.prototype.setAgree = function(agree){
	this.agree=agree;
};

Blog.prototype.getDisagree = function(){
	return this.agree;
};

Blog.prototype.setDisagree = function(disagree){
	this.disagree=disagree;
};

Blog.prototype.getState = function(){
	this.state;
};

Blog.prototype.setState = function(newState){
	this.state=newState;
};